/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Laboratories Provider Codes</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S20749 (C-0-T19465-S20749-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getLaboratoriesProviderCodes()
 * @model extendedMetaData="name='LaboratoriesProviderCodes'"
 * @generated
 */
public enum LaboratoriesProviderCodes implements Enumerator {
	/**
	 * The '<em><b>290000000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_290000000X_VALUE
	 * @generated
	 * @ordered
	 */
	_290000000X(0, "_290000000X", "290000000X"),

	/**
	 * The '<em><b>291U00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_291U00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_291U00000X(1, "_291U00000X", "291U00000X"),

	/**
	 * The '<em><b>292200000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_292200000X_VALUE
	 * @generated
	 * @ordered
	 */
	_292200000X(2, "_292200000X", "292200000X"),

	/**
	 * The '<em><b>293D00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_293D00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_293D00000X(3, "_293D00000X", "293D00000X");

	/**
	 * The '<em><b>290000000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>290000000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_290000000X
	 * @model literal="290000000X"
	 * @generated
	 * @ordered
	 */
	public static final int _290000000X_VALUE = 0;

	/**
	 * The '<em><b>291U00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>291U00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_291U00000X
	 * @model literal="291U00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _291U00000X_VALUE = 1;

	/**
	 * The '<em><b>292200000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>292200000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_292200000X
	 * @model literal="292200000X"
	 * @generated
	 * @ordered
	 */
	public static final int _292200000X_VALUE = 2;

	/**
	 * The '<em><b>293D00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>293D00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_293D00000X
	 * @model literal="293D00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _293D00000X_VALUE = 3;

	/**
	 * An array of all the '<em><b>Laboratories Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final LaboratoriesProviderCodes[] VALUES_ARRAY =
		new LaboratoriesProviderCodes[] {
			_290000000X,
			_291U00000X,
			_292200000X,
			_293D00000X,
		};

	/**
	 * A public read-only list of all the '<em><b>Laboratories Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<LaboratoriesProviderCodes> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Laboratories Provider Codes</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static LaboratoriesProviderCodes get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			LaboratoriesProviderCodes result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Laboratories Provider Codes</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static LaboratoriesProviderCodes getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			LaboratoriesProviderCodes result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Laboratories Provider Codes</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static LaboratoriesProviderCodes get(int value) {
		switch (value) {
			case _290000000X_VALUE: return _290000000X;
			case _291U00000X_VALUE: return _291U00000X;
			case _292200000X_VALUE: return _292200000X;
			case _293D00000X_VALUE: return _293D00000X;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private LaboratoriesProviderCodes(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //LaboratoriesProviderCodes
